import {
	req
} from '../../utils/req.js';
export default {
	// 发起会话
	startMassage(param) {
		return req.post("im/app/IndexIm/startMassage", param)
	}, 
	// 消息中心
	roomList(param) {
		return req.get("im/app/IndexIm/roomList", param)
	},
	// 清除未读消息
	cleanNoReadMassage(param) {
		return req.post("im/app/IndexIm/cleanNoReadMassage", param)
	},
	// 消息列表
	textList(param) {
		return req.get("im/app/IndexIm/textList", param)
	},
	// 是否可以发消息
	canSendMassage(param) {
		return req.get("im/app/IndexIm/canSendMassage", param)
	},
	// 删除
	delMyMassage(param) {
		return req.post("im/app/IndexIm/delMyMassage", param)
	},
	// 撤回
	cancelMyMassage(param) {
		return req.post("im/app/IndexIm/cancelMyMassage", param)
	},
	// 新增草稿
	draftAdd(param) {
		return req.post("im/app/IndexIm/draftAdd", param)
	},
	// 删除草稿
	draftDel(param) {
		return req.post("im/app/IndexIm/draftDel", param)
	},
	// 草稿
	draftInfo(param) {
		return req.get("im/app/IndexIm/draftInfo", param)
	},
}